import Vue from 'vue'
import Vuex from 'vuex'
// 通过 vuex 共享 DataHelter 数据
import ActionHelper from "@/store/ActionHelper";
import ItemData from "@/model/ItemData";
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isShow: false,
    aHelper : new ActionHelper(),
    transfMemo: null, // 修改数据时的过渡属性
    filterCateId: -1, // 筛选出对应分类下的数据的分类id
  },
  mutations: {
    showEditMemo(state: any, data: any) {
      state.transfMemo = data
      state.isShow = true
    }
  },
  actions: {
  },
  modules: {
  }
})
